<?php

class model extends action
{
	protected function num($q)
	{
		$r = mysql_num_rows($q);
		
		return $r;
		
	} // end function
	
	protected function fetch($q)
	{
		$r = mysql_fetch_assoc($q);
		
		return $r;
		
	} // end function
	
	protected function query($q)
	{
		$r = mysql_query($q) or die($q . '<br />' . mysql_error());
		
		return $r;
		
	} // end function
	
} // end class
?>